package thinkingJava;

/**
 * Created by Administrator on 2017/7/10.
 */
public class Exp5_8_1 {
    public static void main(String[] args) {
        printObcs(new Object[]{12, 45, 62});
        printObcs(new Object[]{12, 23.5f, 3.2});
        printObcs(new Object[]{new A(), new A(), new A()});

        printObcs2(12, "asd", 2.34);
        printObcs2(new A(), new A());
    }
    static void printObcs(Object[] obc) {
        for (Object o : obc) {
            System.out.print("---" + o);
        }
        System.out.println();
    }

    static void printObcs2(Object... obc) {
        for (Object o : obc) {
            System.out.print(":" + o);
        }
        System.out.println();
    }
}
class A {}
